package pogvue.datamodel;

import java.util.*;

public class Fragment {

  int    start;
  int    end;
  String str;
  
  Vector feat = null;
  
  public boolean hasFeatures = false;

  public Fragment(int start, int end, String str) {
    setStart(start);
    setEnd(end);
    setStr(str);
  }
  
  public void setFeatures(Vector feat) {
    this.feat = feat;
    hasFeatures = true;

  }
  public Vector getFeatures() {
    return feat;
  }
  public void setStart(int start) {
    this.start = start;
  }
  public void setEnd(int end) {
    this.end  = end;
  }
  public void setStr(String str) {
    this.str = str;
  }
  public int getStart() {
    return start;
  }
  public int getEnd() {
    return end;
  }
  public String getStr() {
    return str;
  }
  public boolean hasFeatures(){
    return hasFeatures;
  }
}

